const path = require('path')
const filepath = '/user/why'
const pathname =  'abc.txy'
// const firlename = filepath + '/'+ pathname
const firlename = path.resolve(filepath, pathname)
console.log('firlename', path.basename(firlename))